package com.rocketmq.consumer.mq;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @program: awesome-spring
 * @description:
 * @author: Alex Wu
 * @createDate: 2025-02-11 13:56
 **/
@Component
@RocketMQMessageListener(topic = "%DLQ%springboot-consumer-group", consumerGroup = "DLQConsumerGroup")
public class DeadLetterQueueConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        System.out.println("DLQ received message: " + message);
    }
}
